package org.bravof.differ.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.bravof.differ.entity.SortPO;
import org.bravof.differ.query.Query;

import java.util.List;

@Mapper
public interface SortDAO {
    /**
     * 条件查询
     *
     * @param query
     * @return
     */
    List<SortPO> findSortListByQuery(@Param("query") Query query, @Param("offset") long offset, @Param("max") long max);

    /**
     * 查询总数
     * @param query
     * @return
     */
    Long findSortCountByQuery(Query query);
}
